/**
 * 
 */
package com.ram.client;


import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

/**
 * @author U277263
 *
 */
public class Registration extends Composite {

	private static RegistrationUiBinder uiBinder = GWT
			.create(RegistrationUiBinder.class);

	interface RegistrationUiBinder extends UiBinder<Widget, Registration> {
	}

	@UiField
    TextBox userBox;
	@UiField
    TextBox firstNameBox;
	@UiField
    TextBox lastNameBox;
	@UiField
    TextBox emailBox;
	@UiField
    TextBox passwordBox;
	
	//@UiField(provided = true)
    final RegistrationResources res;

	public Registration() {
		this.res = GWT.create(RegistrationResources.class);
    	res.style().ensureInjected();
		initWidget(uiBinder.createAndBindUi(this));

		
	}

	@UiHandler("buttonSubmit")
	void onClick(ClickEvent e) {
		Window.alert("Hello!");
	}

}
